<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>

</body>

<script>
  function fn(obj){
    console.log(obj);
  }
  // http://localhost:63342/code/js/index.js
</script>
<script src="./js/index.js"></script>
</html>